package com.rem.designPattern.bridge桥接;

/**
 * 抽象部分
 *
 * @author Rem
 * @date 2022-11-17
 */
public interface Color {

    /**
     * 添加颜色
     */
    void paintColor(String shape);
}

class Red implements Color {

    @Override
    public void paintColor(String shape) {
        System.out.println(shape + "：红色");
    }
}

class Blue implements Color {

    @Override
    public void paintColor(String shape) {
        System.out.println(shape + "：蓝色");
    }
}
